﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChooseLinkUrl.aspx.cs" Inherits="Back_ChooseLinkUrl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link rel="stylesheet" href="../App_Themes/CSS/BackMaster.css" type="text/css">

    <script language="javascript" type="text/javascript">
function btn_Summit_onlick()
{
    window.opener.document.all['ctl00_ContentPlaceHolder1_txb_LinkURL'].value= "ContentList.aspx?type=" + document.all["ddlZhuanTi"].value;
    window.close();
}

    </script>

    <title>图片链接地址选择窗口</title>
</head>
<body style="background-image: none; background-color: White;">
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="Script1"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
    <div style="text-align: center">
        <div class="LinkUrlHeader">
        </div>
        <div style="text-align: left; padding-left: 22px; padding-top: 5px; padding-bottom: 5px;">
            <asp:Panel ID="Panel_ZhuanTi" runat="server">
                请选择一个专题：<br />
                <asp:DropDownList ID="ddlZhuanTi" runat="server">
                </asp:DropDownList>
                <input id="btn_Summit" type="button" value="提交" onclick="return btn_Summit_onlick()" />
            </asp:Panel>
        </div>
        <asp:Panel ID="Panel_WenZhang" runat="server">
            <div class="choice" style="text-align: left; padding-left: 22px">
                栏目选项：<asp:DropDownList ID="ddl_Types" runat="server" AutoPostBack="True" DataTextField="TypeName"
                    OnSelectedIndexChanged="ddl_Types_SelectedIndexChanged" CssClass="dropdownlist"
                    DataValueField="TypeCode">
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddl_ChildTypes" runat="server" AutoPostBack="True" DataTextField="TypeName"
                    DataValueField="TypeCode" OnSelectedIndexChanged="ddl_ChildTypes_SelectedIndexChanged"
                    CssClass="dropdownlist">
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList>
                <br />
            </div>
            <div style="text-align: left; padding-left: 22px; padding-bottom:10px; padding-top:5px">
                <asp:GridView ID="gv_ArticalList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    DataKeyNames="ID" EmptyDataText="没有相关类型的文章" OnPageIndexChanging="gv_ArticalList_PageIndexChanging"
                    OnRowCommand="gv_ArticalList_RowCommand" CellPadding="4" ForeColor="#333333"
                    GridLines="None">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="文章ID" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                文章标题
                            </HeaderTemplate>
                            <ItemTemplate>
                                <a href='../Content.aspx?articleID=<%#Eval("ID")%>' target="_blank">
                                    <%#CutString(Eval("Title").ToString())%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ViewTimes" HeaderText="浏览次数" ItemStyle-Width="78px" ReadOnly="True"
                            SortExpression="ViewTimes">
                            <ItemStyle />
                        </asp:BoundField>
                        <asp:BoundField DataField="CreateTime" HeaderText="创建时间" ReadOnly="True" SortExpression="CreateTime" />
                        <asp:CommandField />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button ID="btn_Select" runat="server" CommandArgument='<%# Eval("ID") %>' CommandName="SelectButton"
                                    Text="选择" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下页" PreviousPageText="上页" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </div>
        </asp:Panel>
        <div class="LinkUrlFtooer">
        </div>
    </div> 
       </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
